#pragma once
class CListMsg;
class MsgHandler;
class WorldSession;
struct tagMessage;
class WorldClient
{
public:
	WorldClient(void);
	~WorldClient(void);
	void	Destroy();
	DWORD	AddRecvMsg(tagMessage* pMsg, DWORD dwSize);
	tagMessage*	GetRecvMsg();
	int		GetRecvNums();
	void	ClearRecvMsg();

	void	AddSendMsg(tagMessage* pMsg, DWORD dwSize);
	tagMessage*	GetSendMsg();
	int		GetSendNums();
	void	ClearSendMsg();

	void	AuthSession(tagMessage* pMsg, DWORD dwSize);
	DWORD	HandleMessage();
public:
	SOCKET		m_Socket;
private:
	CListMsg*	m_pListRecvMsg;
	CListMsg*	m_pListSendMsg;
	WorldSession* m_pSession;
};
